package com.ruoyi.biz.service.impl;

import java.util.List;

import com.ruoyi.biz.domain.BizAddressTag;
import com.ruoyi.biz.mapper.BizAddressTagMapper;
import com.ruoyi.biz.service.IBizAddressTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 收货地址标签Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-16
 */
@Service
public class BizAddressTagServiceImpl implements IBizAddressTagService
{
    @Autowired
    private BizAddressTagMapper bizAddressTagMapper;

    /**
     * 查询收货地址标签
     * 
     * @param id 收货地址标签主键
     * @return 收货地址标签
     */
    @Override
    public BizAddressTag selectBizAddressTagById(Long id)
    {
        return bizAddressTagMapper.selectBizAddressTagById(id);
    }

    /**
     * 查询收货地址标签列表
     * 
     * @param bizAddressTag 收货地址标签
     * @return 收货地址标签
     */
    @Override
    public List<BizAddressTag> selectBizAddressTagList(BizAddressTag bizAddressTag)
    {
        return bizAddressTagMapper.selectBizAddressTagList(bizAddressTag);
    }

    /**
     * 新增收货地址标签
     * 
     * @param bizAddressTag 收货地址标签
     * @return 结果
     */
    @Override
    public int insertBizAddressTag(BizAddressTag bizAddressTag)
    {
        return bizAddressTagMapper.insertBizAddressTag(bizAddressTag);
    }

    /**
     * 修改收货地址标签
     * 
     * @param bizAddressTag 收货地址标签
     * @return 结果
     */
    @Override
    public int updateBizAddressTag(BizAddressTag bizAddressTag)
    {
        return bizAddressTagMapper.updateBizAddressTag(bizAddressTag);
    }

    /**
     * 批量删除收货地址标签
     * 
     * @param ids 需要删除的收货地址标签主键
     * @return 结果
     */
    @Override
    public int deleteBizAddressTagByIds(Long[] ids)
    {
        return bizAddressTagMapper.deleteBizAddressTagByIds(ids);
    }

    /**
     * 删除收货地址标签信息
     * 
     * @param id 收货地址标签主键
     * @return 结果
     */
    @Override
    public int deleteBizAddressTagById(Long id)
    {
        return bizAddressTagMapper.deleteBizAddressTagById(id);
    }
}
